//
//  PKPlayWebViewController.m
//  PianKe
//
//  Created by lanou on 15/10/7.
//  Copyright (c) 2015年 李伟伟. All rights reserved.
//

#import "PKPlayWebViewController.h"

@interface PKPlayWebViewController ()<UIScrollViewDelegate>

@end

@implementation PKPlayWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.

    _configureModel = self.dataSourceArray[self.index];
    _webView = [[UIWebView alloc]init];
    _webView.frame = CGRectMake(0, 0, SCREEN_WITDTH, SCREEN_HEIGHT-140);
    [self setConfigureModel:_configureModel];
    [self.view addSubview:_webView];
    
 
}
-(void)setConfigureModel:(PKRadioDetailModel *)configureModel
{
    _configureModel = configureModel;
    [_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:_configureModel.playInfo.webview_url]]];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
